.flex {
    display: flex;
}

.box {
    position: relative;
}

.span {
    position: absolute;
    width: 30px;
    display: inline-block;
    height: 30px;
    background: orange;
}

.img {
    width: 460px;
    height: 430px;
}